package records

import (
	"github.com/golib/mysql"
)

const RecordNameCmsResourceUpload = "cms_resource_upload"

func init() {
	var r = &CmsResourceUpload{}
	mysql.RegisterRecord(r.Name(), r)
}

type CmsResourceUpload struct {
	ResourceId  int    `json:"resourceId" form:"resourceId" column:"resource_id" primary:"true" modify:"false"`
	CourseId    int    `json:"courseId" form:"courseId" column:"course_id" modify:"true"`
	Type        int    `json:"type" form:"type" column:"type" modify:"true"`
	Desc        string `json:"desc" form:"desc" column:"desc" modify:"true"`
	FileMd5     string `form:"fileMd5" column:"file_md5" modify:"true" json:"fileMd5"`
	Url         string `json:"url" form:"url" column:"url" modify:"true"`
	TxFileId    string `json:"txFileId" form:"txFileId" column:"tx_file_id" modify:"true"`
	TxVodTaskid string `json:"txVodTaskid" form:"txVodTaskid" column:"tx_vod_taskid" modify:"true"`
	TxVodUrls   string `json:"txVodUrls" form:"txVodUrls" column:"tx_vod_urls" modify:"true"`
	Status      int    `json:"status" form:"status" column:"status" modify:"true"`
	CreateTime  string `column:"create_time" modify:"false" json:"createTime" form:"createTime"`
	UpdateTime  string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
}

func (r *CmsResourceUpload) Name() string {
	return RecordNameCmsResourceUpload
}
